home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / vgl20.zip / FLIDEMO.C < prev    next >
Text File  |  1993-05-16  |  954b  |  42 lines

  1. /*****************************************************************************
  2.  FLIDEMO.C
  3.  
  4.  Demo program that plays VGL20.FLI, a flick file.  The flick is played
  5.  directly to video memory the first time.  When you press a key, it is played
  6.  again, but to a virtual screen this time.  This'll show you the differences
  7.  between the two methods.
  8.  
  9.  Mark
  10.  morley@camosun.bc.ca
  11. *****************************************************************************/
  12.  
  13. #include "vgl.h"
  14.  
  15. char far VS[64000];
  16.  
  17. main()
  18. {
  19.    /* Enter mode 13h */
  20.    vglInit();
  21.  
  22.    /* Play the flick directly to video memory */
  23.    vglPlayFLI( "vgl20.fli", VIDMEM, 0 );
  24.  
  25.    /* Clear the screen */
  26.    vglClear( 0 );
  27.  
  28.    /* Wait a moment */
  29.    sleep( 1 );
  30.  
  31.    /* Setup our virtual screen */
  32.    vglBuffer( VS );
  33.  
  34.    /* Play the flick into our virtual screen */
  35.    vglPlayFLI( "vgl20.fli", VS, 0 );
  36.  
  37.    /* Return to text mode */
  38.    vglTerm();
  39.  
  40.    return;
  41. }
  42.